/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Toto.inheritance_principle.service;

import za.ac.cput.Toto.inheritance_principle.inheritence_model.Employee;

/**
 *
 * @author 210012285
 */
public class RunEmployee implements Employee1{

    public double calSalary(Employee e) {
        
        double salary;
        salary = e.getSalary() * e.getHourlyRate();
        return salary;
    }
    
}
